package com.yudean.esb.service.impl.erp;

import com.yudean.esb.dao.erp.ErpIdsControlDao;
import com.yudean.esb.service.ErpControlService;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.jws.WebService;

@WebService(endpointInterface = "com.yudean.esb.service.ErpControlService", serviceName = "ErpControlService",targetNamespace = "http://service.esb.yudean.com/")
@Service("erpControlServiceImpl")
@Scope("prototype")
public class ErpControlServiceImpl implements ErpControlService {
    private final static org.slf4j.Logger LOGGER = LoggerFactory.getLogger(ErpControlServiceImpl.class);
    @Resource
    private ErpIdsControlDao erpControlIdDao;

    @Override
    public String getERPControlId() {
        LOGGER.debug("getERPControlId");
        return erpControlIdDao.getERPControlId();
    }
}
